
package com.myfoon.model.helper;

import com.myfoon.model.cacheable.EventCache;
import com.myfoon.model.cacheable.EventFIFO;
import com.myfoon.model.comparator.EventCacheComparator;
import com.myfoon.model.comparator.LongComparator;
import com.myfoon.model.entity.Event;

import com.myfoon.model.entity.User;

import com.myfoon.model.entryprocessor.EventInserter;

import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;

import com.tangosol.util.comparator.InverseComparator;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class EventCacheHelper {
    public EventCacheHelper() {
    }
    
    public void put(Event event) {    
        NamedCache eventsCache = CacheFactory.getCache("Events");                
        EventCache eventCache = new EventCache(event);
        eventsCache.put(eventCache.getId(), eventCache);                
    }    
}
